package com.liangzhong.modules.activity.command
{
	import com.liangzhong.proxy.activity.ActivityProxy;
	import com.liangzhong.proxyconstant.activity.ActivityConst;
	
	import org.puremvc.as3.interfaces.INotification;
	import org.puremvc.as3.patterns.command.SimpleCommand;
	
	/**
	 *活动 
	 * @author Administrator
	 * 
	 */	
	public class ActivityCommand extends SimpleCommand
	{
		public function ActivityCommand()
		{
			super();
		}
		override public function execute(notification:INotification):void
		{
			var proxy :ActivityProxy = facade.retrieveProxy(ActivityProxy.ProxyName) as ActivityProxy;
			switch(notification.getName())
			{
				case ActivityConst.LIVENESS_AWARD://活跃度奖励
					proxy.requestLivenessaward(notification.getBody());
					break;
				case ActivityConst.LIVENESS_INFO://活跃度信息
					proxy.requestLivenessInfo();
					break;
				case ActivityConst.MAKESTAR_AWARD://七日造星奖励
					proxy.requestmakestaraward(notification.getBody());
					break;
				case ActivityConst.MAKESTAR_INFO://七日造星信息
					proxy.requestmakestarInfo();
					break;
				case ActivityConst.LEVEL_AWARD://冲级奖励
					proxy.requestlevelaward(notification.getBody());
					break;
				case ActivityConst.LEVEL_INFO://冲级信息
					proxy.requestLevelInfo();
					break;
				case ActivityConst.VIP_INFO://vip信息
					proxy.requestVipInfo();
					break;
				case ActivityConst.VIP_DAILY_AWARD://vip每日 奖励
					proxy.requestVipDailyAward(notification.getBody());
					break;
				case ActivityConst.VIP_LV_AWARD://vip等级奖励
					proxy.requestVipLvAward(notification.getBody());
					break;
				case ActivityConst.QZONE_GET_INFO://黄钻信息
					proxy.getQzoneInfo();
					break;
				case ActivityConst.TOPUPFEEDBACK_INFO://充值回馈信息
					proxy.requesttopupfeedbackinfo();
					break;
				case ActivityConst.TOPUPFEEDBACK_AWARD://领取回馈奖励
					proxy.requestTopupfeedbadkWard(notification.getBody());
					break;
				case ActivityConst.CHRISTMAS_GET_INFO://圣诞活动信息
					proxy.getChristmasInfo();
					break; 
				case ActivityConst.CHRISTMAS_ADD_SNOW_BALL://圣诞增加雪球 
					proxy.addSnowBallNum(notification.getBody());
					break;
				case ActivityConst.CHRISTMAS_GET_AWARD://圣诞兑换奖励
					proxy.christmasAward(notification.getBody());
					break;
				case ActivityConst.CDKEY_GET_AWARD://激活码兑换奖励
					proxy.cdkeyGetAward(notification.getBody());
					break;
				case ActivityConst.REQUESTACTIVITY_FESTIVAL_VIP://请求节日活动vip奖励
					proxy.reqeustFestivalVip(notification.getBody());
					break;
				case ActivityConst.REQUEST_ACTIVITY_FESTIVAL_VIP_INFO://请求节日活动信息
					proxy.reqeustFestivalVipInfo(notification.getBody());
					break;
				case ActivityConst.REQUEST_ACTIVITY_OPENSERVE_INFO://请求开服奖励信息
					proxy.requestOpenServeInfo(notification.getBody());
					break;
				case ActivityConst.REQUEST_OPENSERVE_AWARD://请求领取开服奖励
					proxy.requestOpenServeAward(notification.getBody());
					break;
				case ActivityConst.REQUEST_TOPUPREBATE_INFO://请求充值返利信息
					proxy.requestTopupRebateInfo(notification.getBody());
					break;
				case ActivityConst.REQUEST_TOPUPREBATE_AWARD://请求领取充值反返利奖励
					proxy.requestTopupRebateAward(notification.getBody());
					break;
				case ActivityConst.REQUEST_MATCHWELFARE_INFO://请求比赛福利信息
					proxy.requestMatchWelfareInfo(notification.getBody());
					break;
				case ActivityConst.REQUEST_MATCHWELFARE_AWARD://请求领取比赛福利奖励
					proxy.requestMatchWelfareAward(notification.getBody());
					break;
				
				case ActivityConst.REQUEST_ACCUMULATECONSUMPTION_INFO://请求累积消费信息
					proxy.requestAccumulateConsumptionInfo(notification.getBody());
					break;
				case ActivityConst.REQUEST_ACCUMULATECONSUMPTION_AWARD://请求领取累积消费奖励
					proxy.requestAccumulateConsumptionAward(notification.getBody());
					break;
				case ActivityConst.REQUEST_TIMELIMIT_BUY_GOODS://限时打折购买物品
					proxy.requestTimeLimitBuyGoods(notification.getBody());
					break;
				case ActivityConst.REQUEST_TIMELIMIT_INFO://限时打折信息
					proxy.requestTimeLinitInfo(notification.getBody());
					break;
				case ActivityConst.REQUEST_ONLINE_AWARD://领取在线奖励
					proxy.requestOnlineAward(notification.getBody());
					break;
			}
		}
	}
}